package com.wwj.utils;

import java.math.BigDecimal;

/**
 * Created by Auser on 2017/1/13.
 */
public class BigDecimalUtil {

    /**
     * 保留2位数，四舍五入
     * @param num
     * @return
     */
    public static BigDecimal setScale(BigDecimal num){
        return num.setScale(2,BigDecimal.ROUND_HALF_UP);
    }
}
